#define _CRT_SECURE_NO_WARNINGS
#include<iostream>
#include<cstring>
using namespace std;

#ifdef o

void test1()
{
	/*while (true)
	{
		char input[1024];
		fgets(input, 1024, stdin);
		cout << input;
	}*/

	char input[1024];
	char* argv[256];
	fgets(input, 1024, stdin);

	int i = 0;
	argv[i++] = strtok(input, " ");

	
	while (argv[i++] = strtok(nullptr, " "))
	{

	}

	for (int i = 0; argv[i]; i++)
	{
		cout << argv[i] << " ";
	}
	
}

int main()
{

	test1();
	return 0;
}

#endif